import {Navigation} from 'react-native-navigation'

// export default function jumpPage(that, screens, pass) {
//     Navigation.push()
// }

export default class JumpUtil {
    static push(that, screens, passProps = {}, bottomVisible = false ) {
        Navigation.push(that.props.componentId, {
            component: {
                name: screens,
                passProps: passProps,
                options: {
                    bottomTabs: {
                        visible: bottomVisible
                    }
                }
            }
        })
    }
}
